package org.example.design.adapter;


import org.example.design.adapter.phone;

/**
 * @Auther:Liu
 * @Testname:PowerAdapter
 * @Date:2025/8/15 15:07
 */
public class PowerAdapter implements phoneCharge{
    private phone phone;
    private Power power;

    public PowerAdapter(phone phone, Power power) {
        this.phone = phone;
        this.power = power;
    }

    @Override
    public int output5v() {
        System.out.println("将220V转化为5V，开始充电");
        return 5;
    }
}
